namespace SmartSoft.SystemForms
{
    using SmartSoft.Controls;
    using SmartSoft.ADP;
    using System;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Windows.Forms;

    public class FormDmFileLister : FormListEditor
    {
        private BtnControl btnFieldList;
        private BtnControl btnFieldOrder;
        private BtnControl btnFilterFieldList;
        private ChkControl chkCodeNested;
        private ChkControl chkEachWord;
        private ChkControl chkFilterType;
        private ChkControl chkMatchCase;
        private DataGridViewTextBoxColumn Column1;
        private IContainer components;
        private GridControl grdDetail;
        private int ii_RowIndex = -1;
        private LabelControl lblFieldList;
        private LabelControl lblFieldOrder;
        private LabelControl lblFilterFieldList;
        private LabelControl lblFreeFields;
        private LabelControl lblMaxRows;
        private LabelControl lblStartPos;
        private DmFileDataAccess oMethod = new DmFileDataAccess();
        private TextControl txtFieldList;
        private TextControl txtFieldOrder;
        private TextControl txtFilterFieldList;
        private TextNumeric txtFreeFields;
        private TextNumeric txtMaxRows;
        private TextNumeric txtStartPos;

        public FormDmFileLister()
        {
            this.InitializeComponent();
            this.grdDetail.AutoGenerateColumns = false;
            this.grdDetail.CellEnter += new DataGridViewCellEventHandler(this.grdDetail_CellEnter);
            this.grdDetail.CellLeave += new DataGridViewCellEventHandler(this.grdDetail_CellLeave);
            this.FillData();
        }

        private void btnFieldList_MouseUp(object sender, MouseEventArgs e)
        {
            FormDmFieldLister lister = new FormDmFieldLister(base.LocalCurrentRow["Stt"], 1, (base.Top + this.btnFieldList.Top) + e.Y, (base.Left + this.btnFieldList.Left) + e.X, this.txtFieldList.Text);
            lister.ShowDialog();
            this.txtFieldList.Text = lister.FieldList;
        }

        private void btnFieldOrder_MouseUp(object sender, MouseEventArgs e)
        {
            FormDmFieldLister lister = new FormDmFieldLister(base.LocalCurrentRow["Stt"], 2, (base.Top + this.btnFieldOrder.Top) + e.Y, (base.Left + this.btnFieldOrder.Left) + e.X, this.txtFieldOrder.Text);
            lister.ShowDialog();
            this.txtFieldOrder.Text = lister.FieldList;
        }

        private void btnFilterFieldList_MouseUp(object sender, MouseEventArgs e)
        {
            FormDmFieldLister lister = new FormDmFieldLister(base.LocalCurrentRow["Stt"], 3, (base.Top + this.btnFilterFieldList.Top) + e.Y, (base.Left + this.btnFilterFieldList.Left) + e.X, this.txtFilterFieldList.Text);
            lister.ShowDialog();
            this.txtFilterFieldList.Text = lister.FieldList;
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void FillData()
        {
            base.LocalTable = this.oMethod.GetTable();
            this.grdDetail.DataSource = new BindingSource(base.LocalTable, base.LocalTable.TableName);
        }

        private void grdDetail_CellEnter(object sender, DataGridViewCellEventArgs e)
        {
            if (((this.grdDetail.Rows.Count > 0) && (this.ii_RowIndex != e.RowIndex)) && ((this.grdDetail.CurrentRow != null) && (this.grdDetail.CurrentRow.DataBoundItem != null)))
            {
                if (base.LocalCurrentRow != null)
                {
                    base.LocalCurrentRow["FieldList"] = this.txtFieldList.Text;
                    base.LocalCurrentRow["FieldOrder"] = this.txtFieldOrder.Text;
                    base.LocalCurrentRow["FilterFieldList"] = this.txtFilterFieldList.Text;
                    base.LocalCurrentRow["EachWord"] = this.chkEachWord.Checked;
                    base.LocalCurrentRow["FilterType"] = this.chkFilterType.Checked;
                    base.LocalCurrentRow["MatchCase"] = this.chkMatchCase.Checked;
                    base.LocalCurrentRow["CodeNested"] = this.chkCodeNested.Checked;
                    base.LocalCurrentRow["StartPos"] = this.txtStartPos.Value.Equals("") ? DBNull.Value : this.txtStartPos.Value;
                    base.LocalCurrentRow["MaxRows"] = this.txtMaxRows.Value.Equals("") ? DBNull.Value : this.txtMaxRows.Value;
                    base.LocalCurrentRow["FreeFields"] = this.txtFreeFields.Value.Equals("") ? DBNull.Value : this.txtFreeFields.Value; ;
                }
                this.ii_RowIndex = e.RowIndex;
                base.LocalCurrentRow = ((DataRowView) this.grdDetail.CurrentRow.DataBoundItem).Row;
                if (base.LocalCurrentRow.RowState != DataRowState.Unchanged)
                {
                    this.OnShow();
                }
            }
        }

        private void grdDetail_CellLeave(object sender, DataGridViewCellEventArgs e)
        {
        }

        private void InitializeComponent()
        {
            //ComponentResourceManager manager = new ComponentResourceManager(typeof(FormDmFileLister));
            this.grdDetail = new GridControl();
            this.Column1 = new DataGridViewTextBoxColumn();
            this.lblFieldList = new LabelControl();
            this.txtFieldList = new TextControl();
            this.btnFieldList = new BtnControl();
            this.btnFieldOrder = new BtnControl();
            this.txtFieldOrder = new TextControl();
            this.lblFieldOrder = new LabelControl();
            this.btnFilterFieldList = new BtnControl();
            this.lblFilterFieldList = new LabelControl();
            this.txtFilterFieldList = new TextControl();
            this.chkEachWord = new ChkControl();
            this.chkFilterType = new ChkControl();
            this.chkMatchCase = new ChkControl();
            this.chkCodeNested = new ChkControl();
            this.lblStartPos = new LabelControl();
            this.txtStartPos = new TextNumeric();
            this.lblMaxRows = new LabelControl();
            this.txtMaxRows = new TextNumeric();
            this.lblFreeFields = new LabelControl();
            this.txtFreeFields = new TextNumeric();
            ((ISupportInitialize) this.grdDetail).BeginInit();
            base.SuspendLayout();
            base.txtMa_Loai3.Location = new Point(0x17b, 0x185);
            base.txtMa_Loai2.Location = new Point(0xfb, 0x185);
            base.txtMa_Loai1.Location = new Point(0x7b, 0x185);
            base.lblPhan_Loai.Location = new Point(12, 0x188);
            this.grdDetail.AllowUserToAddRows = false;
            this.grdDetail.AllowUserToDeleteRows = false;
            this.grdDetail.AllowUserToResizeRows = false;
            this.grdDetail.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
            this.grdDetail.CheckColor = false;
            this.grdDetail.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
            this.grdDetail.Columns.AddRange(new DataGridViewColumn[] { this.Column1 });
            this.grdDetail.Font = new Font("Arial", 8.25f);
            this.grdDetail.Location = new Point(3, 0x1c);
            this.grdDetail.Name = "grdDetail";
            this.grdDetail.ReadOnly = true;
            this.grdDetail.Size = new Size(0x132, 0x188);
            this.grdDetail.TabIndex = 0;
            this.Column1.DataPropertyName = "Ten_File";
            this.Column1.HeaderText = "Danh mục";
            this.Column1.Name = "Column1";
            this.Column1.ReadOnly = true;
            this.lblFieldList.AutoSize = true;
            this.lblFieldList.Font = new Font("Arial", 8.25f);
            this.lblFieldList.Location = new Point(0x13b, 0x21);
            this.lblFieldList.Name = "lblFieldList";
            this.lblFieldList.Size = new Size(0x30, 14);
            this.lblFieldList.TabIndex = 40;
            this.lblFieldList.Text = "Thể hiện";
            this.txtFieldList.DisabledForeColor = Color.Blue;
            this.txtFieldList.Font = new Font("Arial", 8.25f);
            this.txtFieldList.Location = new Point(0x13e, 50);
            this.txtFieldList.Multiline = true;
            this.txtFieldList.Name = "txtFieldList";
            this.txtFieldList.OldValue = null;
            this.txtFieldList.ReadOnly = true;
            this.txtFieldList.Size = new Size(0x109, 0x27);
            this.txtFieldList.TabIndex = 1;
//            this.txtFieldList.Value = null;//manager.GetObject("txtFieldList.Value");
            this.btnFieldList.Font = new Font("Arial", 8.25f);
            this.btnFieldList.Location = new Point(0x22f, 0x1c);
            this.btnFieldList.Name = "btnFieldList";
            this.btnFieldList.Size = new Size(0x18, 0x15);
            this.btnFieldList.TabIndex = 11;
            this.btnFieldList.TabStop = false;
            this.btnFieldList.Text = "...";
            this.btnFieldList.UseVisualStyleBackColor = true;
            this.btnFieldList.MouseUp += new MouseEventHandler(this.btnFieldList_MouseUp);
            this.btnFieldOrder.Font = new Font("Arial", 8.25f);
            this.btnFieldOrder.Location = new Point(0x22f, 0x61);
            this.btnFieldOrder.Name = "btnFieldOrder";
            this.btnFieldOrder.Size = new Size(0x18, 0x15);
            this.btnFieldOrder.TabIndex = 12;
            this.btnFieldOrder.TabStop = false;
            this.btnFieldOrder.Text = "...";
            this.btnFieldOrder.UseVisualStyleBackColor = true;
            this.btnFieldOrder.MouseUp += new MouseEventHandler(this.btnFieldOrder_MouseUp);
            this.txtFieldOrder.DisabledForeColor = Color.Blue;
            this.txtFieldOrder.Font = new Font("Arial", 8.25f);
            this.txtFieldOrder.Location = new Point(0x13e, 0x77);
            this.txtFieldOrder.Multiline = true;
            this.txtFieldOrder.Name = "txtFieldOrder";
            this.txtFieldOrder.OldValue = null;
            this.txtFieldOrder.ReadOnly = true;
            this.txtFieldOrder.Size = new Size(0x109, 0x27);
            this.txtFieldOrder.TabIndex = 2;
//            this.txtFieldOrder.Value = null;//manager.GetObject("txtFieldOrder.Value");
            this.lblFieldOrder.AutoSize = true;
            this.lblFieldOrder.Font = new Font("Arial", 8.25f);
            this.lblFieldOrder.Location = new Point(0x13b, 0x66);
            this.lblFieldOrder.Name = "lblFieldOrder";
            this.lblFieldOrder.Size = new Size(0x2f, 14);
            this.lblFieldOrder.TabIndex = 40;
            this.lblFieldOrder.Text = "Sắp xếp";
            this.btnFilterFieldList.Font = new Font("Arial", 8.25f);
            this.btnFilterFieldList.Location = new Point(0x22f, 0xa5);
            this.btnFilterFieldList.Name = "btnFilterFieldList";
            this.btnFilterFieldList.Size = new Size(0x18, 0x15);
            this.btnFilterFieldList.TabIndex = 13;
            this.btnFilterFieldList.TabStop = false;
            this.btnFilterFieldList.Text = "...";
            this.btnFilterFieldList.UseVisualStyleBackColor = true;
            this.btnFilterFieldList.MouseUp += new MouseEventHandler(this.btnFilterFieldList_MouseUp);
            this.lblFilterFieldList.AutoSize = true;
            this.lblFilterFieldList.Font = new Font("Arial", 8.25f);
            this.lblFilterFieldList.Location = new Point(0x13b, 170);
            this.lblFilterFieldList.Name = "lblFilterFieldList";
            this.lblFilterFieldList.Size = new Size(0x4b, 14);
            this.lblFilterFieldList.TabIndex = 40;
            this.lblFilterFieldList.Text = "T\x00ecm kiếm trong";
            this.txtFilterFieldList.DisabledForeColor = Color.Blue;
            this.txtFilterFieldList.Font = new Font("Arial", 8.25f);
            this.txtFilterFieldList.Location = new Point(0x13e, 0xbb);
            this.txtFilterFieldList.Multiline = true;
            this.txtFilterFieldList.Name = "txtFilterFieldList";
            this.txtFilterFieldList.OldValue = null;
            this.txtFilterFieldList.ReadOnly = true;
            this.txtFilterFieldList.Size = new Size(0x109, 0x27);
            this.txtFilterFieldList.TabIndex = 3;
//            this.txtFilterFieldList.Value = null;//manager.GetObject("txtFilterFieldList.Value");
            this.chkEachWord.AutoSize = true;
            this.chkEachWord.Font = new Font("Arial", 8.25f);
            this.chkEachWord.Location = new Point(0x13e, 0xef);
            this.chkEachWord.Name = "chkEachWord";
            this.chkEachWord.Size = new Size(0x68, 0x12);
            this.chkEachWord.TabIndex = 4;
            this.chkEachWord.Text = "T\x00ecm theo từng từ";
            this.chkEachWord.UseVisualStyleBackColor = true;
            this.chkFilterType.AutoSize = true;
            this.chkFilterType.Font = new Font("Arial", 8.25f);
            this.chkFilterType.Location = new Point(0x13e, 0x107);
            this.chkFilterType.Name = "chkFilterType";
            this.chkFilterType.Size = new Size(0x75, 0x12);
            this.chkFilterType.TabIndex = 5;
            this.chkFilterType.Text = "T\x00ecm từ tr\x00e1i qua phải";
            this.chkFilterType.UseVisualStyleBackColor = true;
            this.chkMatchCase.AutoSize = true;
            this.chkMatchCase.Font = new Font("Arial", 8.25f);
            this.chkMatchCase.Location = new Point(0x13e, 0x11f);
            this.chkMatchCase.Name = "chkMatchCase";
            this.chkMatchCase.Size = new Size(0xb0, 0x12);
            this.chkMatchCase.TabIndex = 6;
            this.chkMatchCase.Text = "Phân biệt chữ hoa, chữ thường";
            this.chkMatchCase.UseVisualStyleBackColor = true;
            this.chkCodeNested.AutoSize = true;
            this.chkCodeNested.Font = new Font("Arial", 8.25f);
            this.chkCodeNested.Location = new Point(0x13e, 0x137);
            this.chkCodeNested.Name = "chkCodeNested";
            this.chkCodeNested.Size = new Size(0xa6, 0x12);
            this.chkCodeNested.TabIndex = 7;
            this.chkCodeNested.Text = "Cho ph\x00e9p nhập mã lồng nhau";
            this.chkCodeNested.UseVisualStyleBackColor = true;
            this.lblStartPos.AutoSize = true;
            this.lblStartPos.Font = new Font("Arial", 8.25f);
            this.lblStartPos.Location = new Point(0x13b, 0x156);
            this.lblStartPos.Name = "lblStartPos";
            this.lblStartPos.Size = new Size(0xe7, 14);
            this.lblStartPos.TabIndex = 40;
            this.lblStartPos.Text = "Vị tr\x00ed bắt đầu t\x00ecm kiếm.........................................";
            this.txtStartPos.DisabledForeColor = Color.Blue;
            this.txtStartPos.Font = new Font("Arial", 8.25f);
            this.txtStartPos.Location = new Point(0x21e, 0x153);
            this.txtStartPos.Name = "txtStartPos";
            this.txtStartPos.NumericPrecision = 3;
            this.txtStartPos.NumericScaleOnFocus = 0;
            this.txtStartPos.NumericScaleOnLostFocus = 0;
            this.txtStartPos.OldValue = null;
            this.txtStartPos.Size = new Size(0x29, 20);
            this.txtStartPos.TabIndex = 8;
            this.txtStartPos.Text = "0";
            this.txtStartPos.TextAlign = HorizontalAlignment.Right;
//            this.txtStartPos.Value = null;//manager.GetObject("txtStartPos.Value");
            this.txtStartPos.ZeroIsShown = true;
            this.lblMaxRows.AutoSize = true;
            this.lblMaxRows.Font = new Font("Arial", 8.25f);
            this.lblMaxRows.Location = new Point(0x13b, 0x170);
            this.lblMaxRows.Name = "lblMaxRows";
            this.lblMaxRows.Size = new Size(0xe7, 14);
            this.lblMaxRows.TabIndex = 40;
            this.lblMaxRows.Text = "Số d\x00f2ng t\x00ecm kiếm lớn nhất..................................";
            this.txtMaxRows.DisabledForeColor = Color.Blue;
            this.txtMaxRows.Font = new Font("Arial", 8.25f);
            this.txtMaxRows.Location = new Point(0x21e, 0x16d);
            this.txtMaxRows.Name = "txtMaxRows";
            this.txtMaxRows.NumericPrecision = 3;
            this.txtMaxRows.NumericScaleOnFocus = 0;
            this.txtMaxRows.NumericScaleOnLostFocus = 0;
            this.txtMaxRows.OldValue = null;
            this.txtMaxRows.Size = new Size(0x29, 20);
            this.txtMaxRows.TabIndex = 9;
            this.txtMaxRows.Text = "0";
            this.txtMaxRows.TextAlign = HorizontalAlignment.Right;
//            this.txtMaxRows.Value = null;//manager.GetObject("txtMaxRows.Value");
            this.txtMaxRows.ZeroIsShown = true;
            this.lblFreeFields.AutoSize = true;
            this.lblFreeFields.Font = new Font("Arial", 8.25f);
            this.lblFreeFields.Location = new Point(0x13b, 0x18a);
            this.lblFreeFields.Name = "lblFreeFields";
            this.lblFreeFields.Size = new Size(0xe8, 14);
            this.lblFreeFields.TabIndex = 40;
            this.lblFreeFields.Text = "Số trường ph\x00e2n loại sử dụng.............................";
            this.txtFreeFields.DisabledForeColor = Color.Blue;
            this.txtFreeFields.Font = new Font("Arial", 8.25f);
            this.txtFreeFields.Location = new Point(0x21e, 0x187);
            this.txtFreeFields.Name = "txtFreeFields";
            this.txtFreeFields.NumericPrecision = 3;
            this.txtFreeFields.NumericScaleOnFocus = 0;
            this.txtFreeFields.NumericScaleOnLostFocus = 0;
            this.txtFreeFields.OldValue = null;
            this.txtFreeFields.Size = new Size(0x29, 20);
            this.txtFreeFields.TabIndex = 10;
            this.txtFreeFields.Text = "0";
            this.txtFreeFields.TextAlign = HorizontalAlignment.Right;
//            this.txtFreeFields.Value = null;//manager.GetObject("txtFreeFields.Value");
            this.txtFreeFields.ZeroIsShown = true;
            base.AddTitleText = "Tham số t\x00ecm kiếm";
            base.AutoScaleDimensions = new SizeF(6f, 13f);
            base.ClientSize = new Size(600, 0x1a7);
            base.Controls.Add(this.grdDetail);
            base.Controls.Add(this.lblFieldList);
            base.Controls.Add(this.txtFieldList);
            base.Controls.Add(this.txtStartPos);
            base.Controls.Add(this.chkEachWord);
            base.Controls.Add(this.btnFieldList);
            base.Controls.Add(this.txtFieldOrder);
            base.Controls.Add(this.txtMaxRows);
            base.Controls.Add(this.lblFieldOrder);
            base.Controls.Add(this.chkFilterType);
            base.Controls.Add(this.btnFieldOrder);
            base.Controls.Add(this.txtFreeFields);
            base.Controls.Add(this.lblStartPos);
            base.Controls.Add(this.txtFilterFieldList);
            base.Controls.Add(this.btnFilterFieldList);
            base.Controls.Add(this.lblMaxRows);
            base.Controls.Add(this.chkMatchCase);
            base.Controls.Add(this.lblFilterFieldList);
            base.Controls.Add(this.lblFreeFields);
            base.Controls.Add(this.chkCodeNested);
            base.EditTitleText = "Tham số t\x00ecm kiếm";
            base.Name = "FormDmFileLister";
            base.ShowAddButton = false;
            base.ShowFreeFields = false;
            this.Text = "Tham số t\x00ecm kiếm";
            base.Controls.SetChildIndex(this.chkCodeNested, 0);
            base.Controls.SetChildIndex(this.lblFreeFields, 0);
            base.Controls.SetChildIndex(this.lblFilterFieldList, 0);
            base.Controls.SetChildIndex(this.chkMatchCase, 0);
            base.Controls.SetChildIndex(this.lblMaxRows, 0);
            base.Controls.SetChildIndex(this.btnFilterFieldList, 0);
            base.Controls.SetChildIndex(this.txtFilterFieldList, 0);
            base.Controls.SetChildIndex(this.lblStartPos, 0);
            base.Controls.SetChildIndex(this.txtFreeFields, 0);
            base.Controls.SetChildIndex(this.btnFieldOrder, 0);
            base.Controls.SetChildIndex(this.chkFilterType, 0);
            base.Controls.SetChildIndex(this.lblFieldOrder, 0);
            base.Controls.SetChildIndex(this.txtMaxRows, 0);
            base.Controls.SetChildIndex(this.txtFieldOrder, 0);
            base.Controls.SetChildIndex(this.btnFieldList, 0);
            base.Controls.SetChildIndex(this.chkEachWord, 0);
            base.Controls.SetChildIndex(this.txtStartPos, 0);
            base.Controls.SetChildIndex(this.txtFieldList, 0);
            base.Controls.SetChildIndex(this.lblFieldList, 0);
            base.Controls.SetChildIndex(this.grdDetail, 0);
            base.Controls.SetChildIndex(base.lblPhan_Loai, 0);
            base.Controls.SetChildIndex(base.txtMa_Loai1, 0);
            base.Controls.SetChildIndex(base.txtMa_Loai2, 0);
            base.Controls.SetChildIndex(base.txtMa_Loai3, 0);
            ((ISupportInitialize) this.grdDetail).EndInit();
            base.ResumeLayout(false);
            base.PerformLayout();
        }

        protected override void OnResetStatus(bool pb_Status)
        {
            this.txtStartPos.ReadOnly = pb_Status;
            this.txtMaxRows.ReadOnly = pb_Status;
            this.txtFreeFields.ReadOnly = pb_Status;
            this.chkFilterType.Enabled = !pb_Status;
            this.chkMatchCase.Enabled = !pb_Status;
            this.chkCodeNested.Enabled = !pb_Status;
            this.chkEachWord.Enabled = !pb_Status;
            this.btnFieldList.Enabled = !pb_Status;
            this.btnFieldOrder.Enabled = !pb_Status;
            this.btnFilterFieldList.Enabled = !pb_Status;
            base.OnResetStatus(pb_Status);
        }

        public override bool OnSave()
        {
            if (base.LocalCurrentRow != null)
            {
                base.LocalCurrentRow["FieldList"] = this.txtFieldList.Text;
                base.LocalCurrentRow["FieldOrder"] = this.txtFieldOrder.Text;
                base.LocalCurrentRow["FilterFieldList"] = this.txtFilterFieldList.Text;
                base.LocalCurrentRow["EachWord"] = this.chkEachWord.Checked;
                base.LocalCurrentRow["FilterType"] = this.chkFilterType.Checked;
                base.LocalCurrentRow["MatchCase"] = this.chkMatchCase.Checked;
                base.LocalCurrentRow["CodeNested"] = this.chkCodeNested.Checked;
                base.LocalCurrentRow["StartPos"] = this.txtStartPos.Value;
                base.LocalCurrentRow["MaxRows"] = this.txtMaxRows.Value;
                base.LocalCurrentRow["FreeFields"] = this.txtFreeFields.Value;
            }
            foreach (DataRow row in base.LocalTable.Rows)
            {
                row.EndEdit();
                if (row.RowState == DataRowState.Modified)
                {
                    this.oMethod.SaveRow(row);
                }
            }
            return base.OnSave();
        }

        public override void OnShow()
        {
            this.txtFieldList.Text = base.LocalCurrentRow["FieldList"].ToString();
            this.txtFieldOrder.Text = base.LocalCurrentRow["FieldOrder"].ToString();
            this.txtFilterFieldList.Text = base.LocalCurrentRow["FilterFieldList"].ToString();
            this.chkEachWord.Checked = (bool) base.LocalCurrentRow["EachWord"];
            this.chkFilterType.Checked = (bool) base.LocalCurrentRow["FilterType"];
            this.chkMatchCase.Checked = (bool) base.LocalCurrentRow["MatchCase"];
            this.chkCodeNested.Checked = (bool) base.LocalCurrentRow["CodeNested"];
            this.txtStartPos.Text = base.LocalCurrentRow["StartPos"].ToString();
            this.txtMaxRows.Text = base.LocalCurrentRow["MaxRows"].ToString();
            this.txtFreeFields.Text = base.LocalCurrentRow["FreeFields"].ToString();
            base.OnShow();
        }
    }
}

